/*********************************************************************
 * SampleWorker.java created on Feb 3, 2010
 *
 * This file is part of Sure Tech Support Portal System. 
 * Copyright @ 2010 Sure Tech (HK) Limited. All rights reserved.
 * Sure Tech PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *********************************************************************/
package test.com.bizdigger.thread.pool;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @Author: Mac Wang
 * @Date: Feb 3, 2010 5:10:58 PM 
 * @Email: mac@suretech.com.hk
 */

public class SampleWorker {
	private static final Log log = LogFactory.getLog(SampleWorker.class);

	public String executeTask(String strArg, int intArg) {
		log.debug(" Begin executeTask(String, int)  ");
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			log.debug("InterruptedException - ", e);
		}
		log.debug(" End executeTask(String, int) ");
		return strArg + " : " + intArg;
	}

	public String executeTask() {
		log.debug(" Begin executeTask() ");
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			log.debug("InterruptedException - ", e);
		}
	      log.debug(" End executeTask ");
	      return Thread.currentThread().getName();
	}
}
